package com.jxt.detect;

import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;

public class ServiceStartup extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Handler h = new Handler();
        h.post(() -> {
            Intent dialogIntent = new Intent(context, MainActivity.class);
            dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(dialogIntent);
        });
    }
}
